import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data?: {
    list: Array<any>;
    totalCount: number;
  };
};

/** 分页数据 */
export const ExamplegetPage = (params?: object) => {
  return http.request<Result>("get", "/api/Example/GetPage", {
    params
  });
};

export const Examplesave = (data?: object) => {
  return http.request<any>("post", "/api/Example/Save", { data });
};

export const ExampleDelete = (data?: object) => {
  return http.request<Result>("post", "/api/Example/Delete", { data });
};
